<template>
  <div class="itHead" @click="handle_right">
    <div class="left"><slot name="left"></slot></div>
    <div class="center" @click="handle_center"><slot name="center"></slot></div>
    <div class="right"><slot name="right"></slot></div>
  </div>
</template>

<script>
export default {
  methods: {
    handle_right(e) {
      this.$emit("click", { e });
    },
    handle_center(e) {
      this.$emit("click", { e });
    },
  },
};
</script>

<style lang="less" scoped>
@head_height: 50px;
.itHead {
  height: @head_height;
  display: flex;
  align-items: center;
  justify-content: space-between;
  // padding: 0 14px;
  .left,
  .right {
    // background-color: pink;
    height: @head_height;
    line-height: @head_height;
    width: 54 * 100vw / 360;
    text-align: center;
    color: #222;
  }
  .right {
    font-size: 22px;
    line-height: @head_height + 5px;
  }
  .center {
    font-size: 16px;
    font-weight: 700;
  }
}
</style>